import { createRouter,createWebHistory } from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes:[
        {path:'/',component: () => import('./views/Home.vue')},
        {path:'/login',component: () => import('./views/Login.vue')},
        {path:'/register',component: () => import('./views/Register.vue')},
        {path:'/students',component: () => import('./views/StudentListView.vue')},
        {path:'/profile',component: () => import('./views/StudentProfile.vue')},
        {path:'/students/edit/:id',component: () => import('./views/StudentEdit.vue'),props:true}
    ]
})

export default router